package com.java.cloud.pay.api;

import com.java.cloud.pay.entity.Payment;
import com.java.common.utils.R;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author jiangli
 * @since 2020/3/10 9:36
 */
public interface PaymentApi {

	/**
	 * 根据主键查询
	 */
	@RequestMapping("pay/payment/info/{id}")
	R<Payment> info(@PathVariable("id") Long id);

	/**
	 * 新增
	 */
	@RequestMapping("pay/payment/save")
	R save(@RequestBody Payment payment);
}
